<div id="content">
	<div id="top">
		<h3>Users</h3>
		<%= render :partial => '/partials/help_link', :locals => {:path => {:controller => "help", :action => "users", :anchor => "index"}} %>
	</div>
	<div id="filter">
		<div class="left">
			<p><%= page_entries_info @page_results, {:entry_name => "User"} %></p>
		</div>
		<div class="right">
			<%= link_to 'New User', new_user_path %>
		</div>
	</div>
	<table id="list">
		<tr class="header">
			<th class="first">Name</th>
			<th class="second">Account Type</th>
			<th class="third">Location</th>
			<th class="last"></th>
		</tr>
		<% for user in @page_results %>
		<tr class="row">
			<td class="first"><%= user.real_name %></td>
			<td class="second"><%= user.permission_level.capitalize %></td>
			<% @location = user.location %>
			<td class="third"><%= (@location)?(@location.name):"No Location" %></td>
			<td class="last">
				<%# = link_to 'Delete', user, :confirm => 'Are you sure?', :method => :delete %>
				<%= link_to 'Edit', edit_user_path(user) %>
			</td>
		</tr>
		<% end %>
	</table>
	<div id="pagination">
		<%= will_paginate @page_results %>
	</div>
</div>